import functools
import hashlib
import operator
from collections.abc import Iterable

def func():
    a = 1
    b = [1,2,3,4,]
    print(locals())
    var = dict(locals())
    var.pop('a')
    return var


class A:
    def __init__(self):
        pass

    def __getitem__(self, key):
        print(key)


if __name__ == '__main__':
    r = func()
    print(r)
    print(locals())
    print(NotImplemented)
    print(isinstance(r, Iterable))